<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加博客</title>
</head>
<body>
<form action="/add_article" method="post">
        title:<input name="title">
    <br>
    desc:<input name="desc">
    <br>
    tag:<input name="tag">
    <br>
    content:<input name="content">
    <br>
    category: <select name="category">
                {% for category  in categories %}
                       <option value="{{ category.id }}">{{ category.name }}</option>
                {% endfor %}
                </select>
    <br>

    <button type="submit">提交 </button>

</form>

</body>
</html>